package com.zcl.momgo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document("user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @Id //表示主键
    private ObjectId _id;
    private String id;
    private String ename;
    private String name;
    private Integer age;
}